nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/Text tags and Formatting

Inline text elements like strong, em, mark and code, and the difference between meaning and looks.

10 QuestionsBeginnerMedium Priority ~8 min read

Modern HTML separates the meaning of text from its presentation. <strong> signals strong importance and <em> signals stress emphasis, while <b> and <i> are purely stylistic offsets that carry no extra importance. Other inline elements add meaning too: <mark> highlights relevance, <code> and <pre> represent code, <abbr> expands abbreviations, <time> gives machine-readable dates, and <sub>, <sup>, <small>, <del> and <ins> handle specific text conventions.

The classic question is 'what's the difference between <strong> and <b>?' The visual result is usually identical, but strong conveys importance to browsers, search engines and screen readers, while b doesn't. Another point worth knowing is that browsers collapse consecutive whitespace and line breaks in normal text, which is why <pre> exists to preserve them. Picking elements for their meaning, then styling with CSS, is the habit being tested.

What you'll walk away knowing

The semantic difference between strong/em and b/i
When to use mark, code, pre, abbr, time, sub and sup
How browsers collapse whitespace and how pre preserves it
Why formatting should be driven by meaning in HTML and appearance in CSS
1What does the <br> tag do?Beginner2Difference between <strong> and <b> tags?Beginner3How to make a text italics ?Beginner4When should you use <em> instead of <i>?Beginner5How to make a text underline ?Beginner6What's the purpose of <hr>?Beginner7What is the purpose and difference between <p>, <h1>–<h6>?Beginner
All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.